package com.viewsky.base.back.util;

public class Constant
{
	public static final String DEF_BASE_PACKAGE = "com.viewsky.base.back";
		
	public static final String DEF_APACHE_CONTAINER_BASE = "org.apache.catalina.core.ContainerBase";
		
	public static final int DEF_ARGS_LENGTH_IN_LOG = 500;
	
	public static final int DEF_RESULT_LENGTH_IN_LOG = 500;
	
	public static final String DEF_REDIS_KEY_USER = "USER";
	
	public static final String DEF_REDIS_KEY_ORG = "ORG";
	
	public static final String DEF_JWT_SECRET = "view5ky";
	
	public static final String DEF_MY_CUSTOMER_PAGE = "http://127.0.0.1:9080/crw/index.html?token=";
	
	public static final long DEF_TOKEN_EXPIRATION = 30 * 60 * 1000;
	
	public static final String DEF_TOKEN_HEADER = "Bearer ";
	
	public static final class AuthenticationMethod
	{
		public static final String SESSION = "session";
		
		public static final String TOKEN = "token";
	}
	
	public static final class ResultCode
	{
		public static final String NOT_LOGIN = "-1";
		
		public static final String SUCCESS = "0";
		
		public static final String ERROR_PASSWORD = "1";
		
		public static final String TOKEN_EXPIRED = "2";
		
		public static final String TOKEN_MODIFIED = "3";
		
		public static final String INNER_ERROR = "9";
	}
}
